using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

using Tao.OpenGl;

namespace tp3
{
    public class ColorTP
    {
        public static void GlColor(Color color)
        {
            Gl.glColor3f((float)(1.0F - ((255.0F - color.R) / 255.0F)),
                (float)(1.0 - ((255.0 - color.G) / 255.0)),
                (float)(1.0 - ((255.0 - color.B) / 255.0)));
        }

        public static float[] FColor(Color color)
        {
            float[] c ={(float)(1.0F - ((255.0F - color.R) / 255.0F)),
                (float)(1.0 - ((255.0 - color.G) / 255.0)),
                (float)(1.0 - ((255.0 - color.B) / 255.0)),
                1.0F};
            return c;
        }
    }
}
